package com.example.bookdemo.model;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "captcha")
@Data
public class CaptchaProperties {
    private Integer height;
    private Integer weight;
    private String code;
    private long date;

    public void setCode(String code) {
        this.code = code;
    }

    public void setDate(long date) {
        this.date = date;
    }
}
